package com.xcc.annotation.tx;

import com.xcc.annotation.tx.mysql.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainTxTest {

    @Test
    public void testTx() {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("com.xcc.annotation.tx");
        UserService bean = applicationContext.getBean(UserService.class);
        bean.insert(10,18);

    }

}
